home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXmmmmbbbbTTTTeeeexxxxttttLLLLiiiissssttttTTTTooooTTTTeeeexxxxttttPPPPrrrrooooppppeeeerrrrttttyyyy((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXmmmmbbbbTTTTeeeexxxxttttLLLLiiiissssttttTTTTooooTTTTeeeexxxxttttPPPPrrrrooooppppeeeerrrrttttyyyy((((3333XXXX11111111))))
-
-
-
- NNNNAAAAMMMMEEEE
- XmbTextListToTextProperty, XwcTextListToTextProperty,
- XmbTextPropertyToTextList, XwcTextPropertyToTextList,
- XwcFreeStringList, XDefaultString - convert text lists and
- text property structures
-
- SSSSYYYYNNNNTTTTAAAAXXXX
- int XmbTextListToTextProperty(_d_i_s_p_l_a_y, _l_i_s_t, _c_o_u_n_t, _s_t_y_l_e,
- _t_e_x_t__p_r_o_p__r_e_t_u_r_n)
- Display *_d_i_s_p_l_a_y;
- char **_l_i_s_t;
- int _c_o_u_n_t;
- XICCEncodingStyle _s_t_y_l_e;
- XTextProperty *_t_e_x_t__p_r_o_p__r_e_t_u_r_n;
-
- int XwcTextListToTextProperty(_d_i_s_p_l_a_y, _l_i_s_t, _c_o_u_n_t, _s_t_y_l_e,
- _t_e_x_t__p_r_o_p__r_e_t_u_r_n)
- Display *_d_i_s_p_l_a_y;
- wchar_t **_l_i_s_t;
- int _c_o_u_n_t;
- XICCEncodingStyle _s_t_y_l_e;
- XTextProperty *_t_e_x_t__p_r_o_p__r_e_t_u_r_n;
-
- int XmbTextPropertyToTextList(_d_i_s_p_l_a_y, _t_e_x_t__p_r_o_p,
- _l_i_s_t__r_e_t_u_r_n, _c_o_u_n_t__r_e_t_u_r_n)
- Display *_d_i_s_p_l_a_y;
- XTextProperty *_t_e_x_t__p_r_o_p;
- char ***_l_i_s_t__r_e_t_u_r_n;
- int *_c_o_u_n_t__r_e_t_u_r_n;
-
- int XwcTextPropertyToTextList(_d_i_s_p_l_a_y, _t_e_x_t__p_r_o_p,
- _l_i_s_t__r_e_t_u_r_n, _c_o_u_n_t__r_e_t_u_r_n)
- Display *_d_i_s_p_l_a_y;
- XTextProperty *_t_e_x_t__p_r_o_p;
- wchar_t ***_l_i_s_t__r_e_t_u_r_n;
- int *_c_o_u_n_t__r_e_t_u_r_n;
-
- void XwcFreeStringList(_l_i_s_t)
- wchar_t **_l_i_s_t;
-
- char *XDefaultString()
-
- AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
- _d_i_s_p_l_a_y Specifies the connection to the X server.
-
- _l_i_s_t Specifies a list of null-terminated character
- strings.
-
- _c_o_u_n_t Specifies the number of strings specified.
-
- _s_t_y_l_e Specifies the manner in which the property is
- encoded.
-
-
-
- Page 1 (printed 4/30/98)
-
-
-
-
-
-
- XXXXmmmmbbbbTTTTeeeexxxxttttLLLLiiiissssttttTTTTooooTTTTeeeexxxxttttPPPPrrrrooooppppeeeerrrrttttyyyy((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXmmmmbbbbTTTTeeeexxxxttttLLLLiiiissssttttTTTTooooTTTTeeeexxxxttttPPPPrrrrooooppppeeeerrrrttttyyyy((((3333XXXX11111111))))
-
-
-
- _t_e_x_t__p_r_o_p__r_e_t_u_r_n
- Returns the _X_T_e_x_t_P_r_o_p_e_r_t_y structure.
-
- _t_e_x_t__p_r_o_p Specifies the _X_T_e_x_t_P_r_o_p_e_r_t_y structure to be used.
-
- _l_i_s_t__r_e_t_u_r_n
- Returns a list of null-terminated character
- strings.
-
- _c_o_u_n_t__r_e_t_u_r_n
- Returns the number of strings.
-
- _l_i_s_t Specifies the list of strings to be freed.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _X_m_b_T_e_x_t_L_i_s_t_T_o_T_e_x_t_P_r_o_p_e_r_t_y and _X_w_c_T_e_x_t_L_i_s_t_T_o_T_e_x_t_P_r_o_p_e_r_t_y
- functions set the specified _X_T_e_x_t_P_r_o_p_e_r_t_y value to a set of
- null-separated elements representing the concatenation of
- the specified list of null-terminated text strings. A final
- terminating null is stored at the end of the value field of
- text_prop_return but is not included in the nitems member.
-
- The functions set the encoding field of text_prop_return to
- an _A_t_o_m for the specified display naming the encoding
- determined by the specified style and convert the specified
- text list to this encoding for storage in the
- text_prop_return value field. If the style _X_S_t_r_i_n_g_S_t_y_l_e or
- _X_C_o_m_p_o_u_n_d_T_e_x_t_S_t_y_l_e is specified, this encoding is ``STRING''
- or ``COMPOUND_TEXT'', respectively. If the style _X_T_e_x_t_S_t_y_l_e
- is specified, this encoding is the encoding of the current
- locale. If the style _X_S_t_d_I_C_C_T_e_x_t_S_t_y_l_e is specified, this
- encoding is ``STRING'' if the text is fully convertible to
- STRING, else ``COMPOUND_TEXT''.
-
- If insufficient memory is available for the new value
- string, the functions return _X_N_o_M_e_m_o_r_y. If the current
- locale is not supported, the functions return
- _X_L_o_c_a_l_e_N_o_t_S_u_p_p_o_r_t_e_d. In both of these error cases, the
- functions do not set text_prop_return.
-
- To determine if the functions are guaranteed not to return
- _X_L_o_c_a_l_e_N_o_t_S_u_p_p_o_r_t_e_d, use _X_S_u_p_p_o_r_t_s_L_o_c_a_l_e.
-
- If the supplied text is not fully convertible to the
- specified encoding, the functions return the number of
- unconvertible characters. Each unconvertible character is
- converted to an implementation-defined and encoding-specific
- default string. Otherwise, the functions return _S_u_c_c_e_s_s.
- Note that full convertibility to all styles except
- _X_S_t_r_i_n_g_S_t_y_l_e is guaranteed.
-
- To free the storage for the value field, use _X_F_r_e_e.
-
-
-
- Page 2 (printed 4/30/98)
-
-
-
-
-
-
- XXXXmmmmbbbbTTTTeeeexxxxttttLLLLiiiissssttttTTTTooooTTTTeeeexxxxttttPPPPrrrrooooppppeeeerrrrttttyyyy((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXmmmmbbbbTTTTeeeexxxxttttLLLLiiiissssttttTTTTooooTTTTeeeexxxxttttPPPPrrrrooooppppeeeerrrrttttyyyy((((3333XXXX11111111))))
-
-
-
- The _X_m_b_T_e_x_t_P_r_o_p_e_r_t_y_T_o_T_e_x_t_L_i_s_t and _X_w_c_T_e_x_t_P_r_o_p_e_r_t_y_T_o_T_e_x_t_L_i_s_t
- functions return a list of text strings in the current
- locale representing the null-separated elements of the
- specified _X_T_e_x_t_P_r_o_p_e_r_t_y structure. The data in text_prop
- must be format 8.
-
- Multiple elements of the property (for example, the strings
- in a disjoint text selection) are separated by a null byte.
- The contents of the property are not required to be null-
- terminated; any terminating null should not be included in
- text_prop.nitems.
-
- If insufficient memory is available for the list and its
- elements, _X_m_b_T_e_x_t_P_r_o_p_e_r_t_y_T_o_T_e_x_t_L_i_s_t and
- _X_w_c_T_e_x_t_P_r_o_p_e_r_t_y_T_o_T_e_x_t_L_i_s_t return _X_N_o_M_e_m_o_r_y. If the current
- locale is not supported, the functions return
- _X_L_o_c_a_l_e_N_o_t_S_u_p_p_o_r_t_e_d. Otherwise, if the encoding field of
- text_prop is not convertible to the encoding of the current
- locale, the functions return _X_C_o_n_v_e_r_t_e_r_N_o_t_F_o_u_n_d. For
- supported locales, existence of a converter from
- COMPOUND_TEXT, STRING or the encoding of the current locale
- is guaranteed if _X_S_u_p_p_o_r_t_s_L_o_c_a_l_e returns _T_r_u_e for the
- current locale (but the actual text may contain
- unconvertible characters). Conversion of other encodings is
- implementation-dependent. In all of these error cases, the
- functions do not set any return values.
-
- Otherwise, _X_m_b_T_e_x_t_P_r_o_p_e_r_t_y_T_o_T_e_x_t_L_i_s_t and
- _X_w_c_T_e_x_t_P_r_o_p_e_r_t_y_T_o_T_e_x_t_L_i_s_t return the list of null-terminated
- text strings to list_return and the number of text strings
- to count_return.
-
- If the value field of text_prop is not fully convertible to
- the encoding of the current locale, the functions return the
- number of unconvertible characters. Each unconvertible
- character is converted to a string in the current locale
- that is specific to the current locale. To obtain the value
- of this string, use _X_D_e_f_a_u_l_t_S_t_r_i_n_g. Otherwise,
- _X_m_b_T_e_x_t_P_r_o_p_e_r_t_y_T_o_T_e_x_t_L_i_s_t and _X_w_c_T_e_x_t_P_r_o_p_e_r_t_y_T_o_T_e_x_t_L_i_s_t
- return _S_u_c_c_e_s_s.
-
- To free the storage for the list and its contents returned
- by _X_m_b_T_e_x_t_P_r_o_p_e_r_t_y_T_o_T_e_x_t_L_i_s_t, use _X_F_r_e_e_S_t_r_i_n_g_L_i_s_t. To free
- the storage for the list and its contents returned by
- _X_w_c_T_e_x_t_P_r_o_p_e_r_t_y_T_o_T_e_x_t_L_i_s_t, use _X_w_c_F_r_e_e_S_t_r_i_n_g_L_i_s_t.
-
- The _X_w_c_F_r_e_e_S_t_r_i_n_g_L_i_s_t function frees memory allocated by
- _X_w_c_T_e_x_t_P_r_o_p_e_r_t_y_T_o_T_e_x_t_L_i_s_t.
-
- The _X_D_e_f_a_u_l_t_S_t_r_i_n_g function returns the default string used
- by Xlib for text conversion (for example, in
- _X_m_b_T_e_x_t_P_r_o_p_e_r_t_y_T_o_T_e_x_t_L_i_s_t). The default string is the
-
-
-
- Page 3 (printed 4/30/98)
-
-
-
-
-
-
- XXXXmmmmbbbbTTTTeeeexxxxttttLLLLiiiissssttttTTTTooooTTTTeeeexxxxttttPPPPrrrrooooppppeeeerrrrttttyyyy((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXmmmmbbbbTTTTeeeexxxxttttLLLLiiiissssttttTTTTooooTTTTeeeexxxxttttPPPPrrrrooooppppeeeerrrrttttyyyy((((3333XXXX11111111))))
-
-
-
- string in the current locale that is output when an
- unconvertible character is found during text conversion. If
- the string returned by _X_D_e_f_a_u_l_t_S_t_r_i_n_g is the empty string
- (""), no character is output in the converted text.
- _X_D_e_f_a_u_l_t_S_t_r_i_n_g does not return NULL.
-
- The string returned by _X_D_e_f_a_u_l_t_S_t_r_i_n_g is independent of the
- default string for text drawing; see _X_C_r_e_a_t_e_F_o_n_t_S_e_t to
- obtain the default string for an _X_F_o_n_t_S_e_t.
-
- The behavior when an invalid codepoint is supplied to any
- Xlib function is undefined.
-
- The returned string is null-terminated. It is owned by Xlib
- and should not be modified or freed by the client. It may
- be freed after the current locale is changed. Until freed,
- it will not be modified by Xlib.
-
- SSSSTTTTRRRRUUUUCCCCTTTTUUUURRRREEEESSSS
- The _X_T_e_x_t_P_r_o_p_e_r_t_y structure contains:
-
- typedef struct {
- unsigned char *value;/* property data */
- Atom encoding; /* type of property */
- int format; /* 8, 16, or 32 */
- unsigned long nitems;/* number of items in value */
- } XTextProperty;
-
- The _X_I_C_C_E_n_c_o_d_i_n_g_S_t_y_l_e structure contains:
-
- #define
- _X_N_o_M_e_m_o_r_y
- -1
- #define
- _X_L_o_c_a_l_e_N_o_t_S_u_p_p_o_r_t_e_d
- -2
- #define
- _X_C_o_n_v_e_r_t_e_r_N_o_t_F_o_u_n_d
- -3
- typedef enum {
- XStringStyle, /* STRING */
- XCompoundTextStyle, /* COMPOUND_TEXT */
- XTextStyle, /* text in owner's encoding (current locale) */
- XStdICCTextStyle /* STRING, else COMPOUND_TEXT */
- } XICCEncodingStyle;
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- XSetTextProperty(3X11), XStringListToTextProperty(3X11)
- _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
-
-
-
-
-
-
-
-
-
-
-
-
- Page 4 (printed 4/30/98)
-
-
-
-